import { ref } from 'vue'

export const useDialog = () => {
  const show = ref(false)

  const close = () => {
    show.value = false
  }

  const open = () => {
    show.value = true
  }

  return {
    show,
    close,
    open
  }
}
